package com.ftf.tp.blog.infrastructure.mapper.pos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 文章专栏表
 *
 * @author tanghao
 * @date 2022/6/24
 */
@ApiModel(value = "文章专栏表")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`column`")
public class ColumnPO{
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 专栏作者id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "专栏作者id")
    private Long userId;

    /**
     * 专栏名称
     */
    @TableField(value = "`column_name`")
    @ApiModelProperty(value = "专栏名称")
    private String columnName;

    /**
     * 专栏简介
     */
    @TableField(value = "column_introduction")
    @ApiModelProperty(value = "专栏简介")
    private String columnIntroduction;

    /**
     * 专栏封面
     */
    @TableField(value = "column_cover")
    @ApiModelProperty(value = "专栏封面")
    private String columnCover;

    /**
     * 专栏订阅数
     */
    @TableField(value = "subscribe_number")
    @ApiModelProperty(value = "专栏订阅数")
    private Integer subscribeNumber;

    /**
     * 专栏文章数
     */
    @TableField(value = "article_number")
    @ApiModelProperty(value = "专栏文章数")
    private Integer articleNumber;

    /**
     * 创建时间
     */
    @TableField(value = "created_time")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /**
     * 更新时间
     */
    @TableField(value = "updated_time")
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    /**
     * 创建人id
     */
    @TableField(value = "created_by")
    @ApiModelProperty(value = "创建人id")
    private Long createdBy;

    /**
     * 更新人id
     */
    @TableField(value = "updated_by")
    @ApiModelProperty(value = "更新人id")
    private Long updatedBy;
}